C (167/301)

From:Ben Hutchings
Date:27 Aug 99 at 22:57:13
Subject:Re: Re: ExecBase & 'RESET:starting PC' exception

From: Ben Hutchings <womble@zzumbouk.demon.co.uk>

On Fri, Aug 27, 1999 at 03:06:35PM +0100, Gabriele Svelto wrote:
> From: Gabriele Svelto <jlpicard@tiscalinet.it>
>
> Hello Ben
>
> On 26-Ago-99, you wrote:
>
> > From: Ben Hutchings <womble@zzumbouk.d
> > (...)
> >> contained the pointer to the 'RESET: starting PC' exception.
> >
> > That's not actually an exception.
>
> What is it then? (The tutorial which said that it was an exception is
> dev/asm/AmigaAsm.lha from Aminet) After reading all the answers I realise
> I've misunderstood everything...

I don't consider an external reset to be an exception. I suppose it's
a matter of opinion.

> > Exceptions are an alternative way of returning from a function
> > (...)
> > object if one of its member functions terminates due to an exception.
>
> This looks veeery interesting, I think I could skip a lot of if()s which
> burden my code this way, where can I find some docs about it?

Any C++ book written in the last few years. I think `More Effective
C++' by Scott Meyer has a lot to say about using them properly.



Ben Hutchings - womble@zzumbouk.demon.co.uk, http://www.zzumbouk.demon.co.uk
Team *AMIGA* | Jay Miner Society | Linux - the choice of a GNU generation
For every complex problem there is a solution
that is simple, neat, and wrong.